package com.qf.agro.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.agro.pojo.SysRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 10202
 * @version V1.0
 * @Project smart-agriculture-parent
 * @Package com.qf.agro.mapper
 * @Date 2023/5/23 11:41
 */
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {
    List<Long> selectRoleIdByUserId(Long userId);

    Boolean deleteRoleByUserId(String userId);

    boolean insertRoleByUserId(String userId, String roleId);
}
